package com.luo.testtouch;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;

public class MainActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        
         View but = findViewById(R.id.touch);
         but.setOnClickListener(new OnClickListener()
		{
			
			@Override
			public void onClick(View v)
			{
				Intent t = new Intent(MainActivity.this,TouchActivity.class);
				startActivity(t);
				
			}
		});
         
         
         
         View but2 = findViewById(R.id.touch2);
         but2.setOnClickListener(new OnClickListener()
		{
			
			@Override
			public void onClick(View v)
			{
				Intent t = new Intent(MainActivity.this,TouchActivity2.class);
				startActivity(t);
			}
		});
         
         
         
         
    }

}
